package c.a.a.z.c;

import c.a.a.e0.f;
import c.a.a.f0.a;
import java.util.List;

/* compiled from: FloatKeyframeAnimation */
public class c extends f<Float> {
    public c(List<a<Float>> list) {
        super(list);
    }

    public Object f(a aVar, float f) {
        return Float.valueOf(k(aVar, f));
    }

    public float j() {
        return k(a(), c());
    }

    public float k(a<Float> aVar, float f) {
        if (aVar.b == null || aVar.c == null) {
            throw new IllegalStateException("Missing values for keyframe.");
        }
        c.a.a.f0.c cVar = this.e;
        if (cVar != null) {
            Float f2 = (Float) cVar.a(aVar.e, aVar.f.floatValue(), aVar.b, aVar.c, f, d(), this.d);
            if (f2 != null) {
                return f2.floatValue();
            }
        }
        if (aVar.g == -3987645.8f) {
            aVar.g = ((Float) aVar.b).floatValue();
        }
        float f3 = aVar.g;
        if (aVar.h == -3987645.8f) {
            aVar.h = ((Float) aVar.c).floatValue();
        }
        return f.e(f3, aVar.h, f);
    }
}
